<?php class HeatherBlock extends HeatherObject {
	protected $_Identity = 'Paragraph';


	public function __construct ($FirstLine = '') {


#		$Matches = array ();
#		if (preg_match ('[^: ( [\p{L}\p{N}]+ ( , [\p{L}\p{N}]+ )* ) \s+ (.*) $]ux', $String, $Matches)) var_dump ($Matches);

var_dump ('fl:'.$FirstLine);

#		$this->_Identity = $Identity;
	}


/*
	public function AddLine (HeatherLine $Line) {
		$String = $Line->Data;
		$KeepIntact = FALSE;
		if ($this instanceof HeatherBlockCode) {
			$this->UnlinkLastChild ();
			$KeepIntact = TRUE;
		} else {
			if (strlen ($String) !== strlen ($Trimmed = ltrim ($String))) {
				$this->UnlinkLastChild ();
				$String = $Trimmed;
			}
		}
		if ($this->NoLastChild ()) $this->AddChild (new HeatherString ($KeepIntact));
		$this->LastChild->Append ($String);
	}
*/

	public function AddString ($String = '') {


var_dump ('bl:'.$String);
	}


	protected function XMLAttributes () {
		$Result = '';
		strlen ($this->_Identity) and $Result .= ' identity="'.htmlspecialchars ($this->_Identity, ENT_QUOTES).'"';
		return ($Result);
	}
} ?>